package com.cinc.ebc.mm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cinc.ebc.mm.entity.MmMaterialPickingDetail;
import com.cinc.ebc.mm.entity.MmMaterialPicking;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cinc.ebc.mm.model.MmMaterialPickingStockModel;
import com.cinc.ebc.mm.vo.MmMaterialPickingRequestPage;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 材料领用
 * @Author: jeecg-boot
 * @Date:   2023-04-16
 * @Version: V1.0
 */
public interface IMmMaterialPickingService extends IService<MmMaterialPicking> {

	/**
	 * 添加一对多
	 *
	 */
	public void saveMain(MmMaterialPicking mmMaterialPicking,List<MmMaterialPickingDetail> mmMaterialPickingDetailList) ;

	/**
	 * 修改一对多
	 *
	 */
	public void updateMain(MmMaterialPicking mmMaterialPicking,List<MmMaterialPickingDetail> mmMaterialPickingDetailList);

	/**
	 * 删除一对多
	 */
	public void delMain (String id);

	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	void handleOut(String id, List<MmMaterialPickingStockModel> pickingStockModelList) throws Exception;

	IPage<MmMaterialPicking> pickingPage(Page<MmMaterialPicking> page, MmMaterialPickingRequestPage mmMaterialPickingRequest);
}
